package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import com.ruoyi.aitcommon.config.AITConfig;
import com.ruoyi.aitcommon.utils.LogUtils;
import com.ruoyi.aitcommon.utils.VersionUtils;

/**
 * 启动程序
 * 
 * @author cli
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class AIFKApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(AIFKApplication.class, args);
        String msg="\r\n-------------[%s:%s]启动成功！----------------\r\n"
        		+ "启动端口:%s,运行路径:%s\r\n"
        		+ "ait.path=%s\r\n"
        		+ "-------------";
        msg=String.format(msg, AITConfig.getName(),
        		VersionUtils.getCodeVersion(),
        		AITConfig.getPort(),
        		System.getProperty("user.dir"),
        		System.getProperty("ait.path"));
        LogUtils.info(msg);
    }
}
